Effect of temperature on speed of sound